package com.buercorp.wangyu.common;

import java.util.Scanner;

// DJK12新属性

public class SwitchDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字");
        int number = sc.nextInt();
   /*     switch (number) {
            case 1:
                System.out.println("yi");
                break;
            case 2:
                System.out.println("er");
                break;
            case 3:
                System.out.println("san");
                break;
            default:
                System.out.println("no");
                break;
        }*/

//        switch (number) {
//            case 1 -> {
//                System.out.println("yi");
//            }
//            case 2 -> {
//                System.out.println("er");
//            }
//            default -> {
//                System.out.println("no");
//
//            }
//        }
    }
}
